namespace TestEngine
{
    public class Question
    {
        public Question(int questionId, double cost)
        {
            QuestionID = questionId;
            Cost = cost;
        }

        public int QuestionID { get; set; }
        public double Cost { get; set; }
        public bool IsOpenQuestion { get; set; }

        public override int GetHashCode()
        {
            return QuestionID.GetHashCode();
        }

        public override bool Equals(object obj)
        {
            return GetHashCode() == obj.GetHashCode();
        }
    }
}